package cn.honglian.system.controller;



import cn.honglian.basic.util.PageList;
import cn.honglian.system.domain.Log;
import cn.honglian.system.query.LogQuery;
import cn.honglian.system.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

        @Autowired
        private LogService logService;
        @PostMapping
        public PageList<Log> queryByPage(@RequestBody LogQuery logQuery){

            return logService.queryByPage(logQuery);

        }
}
